home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2410 / 2410.xpi / chrome / content / foxmarks-setup.xul < prev    next >
Extensible Markup Language  |  2010-01-28  |  13KB  |  320 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.  
  5. Copyright 2005-2008 Foxmarks Inc.
  6.  
  7. foxmarks-setup.xul: implements the Foxmarks Setup Wizard.
  8.  
  9. -->
  10.  
  11. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  12. <?xml-stylesheet href="chrome://foxmarks/skin/foxmarks.css" type="text/css" ?>
  13.  
  14. <!DOCTYPE dialog [
  15.     <!ENTITY % first SYSTEM "chrome://foxmarks/locale/setup.dtd">
  16.     %first;
  17.     <!ENTITY % second SYSTEM "chrome://foxmarks/locale/foxmarks.dtd">
  18.     %second;
  19.     <!ENTITY % third SYSTEM "chrome://global/locale/dialogOverlay.dtd">
  20.     %third;
  21. ]>
  22.  
  23. <wizard id="foxmarks-setup" title="&wizard.title;"
  24.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  25.     xmlns:html="http://www.w3.org/1999/xhtml"
  26.     windowtype="foxmarks:setup"
  27.     onwizardcancel="return OnWizardCancel();"
  28.     onwizardfinish="return SetupOnWizardFinish();"
  29.     onload="OnWizardLoad();"
  30.     minwidth="600"
  31.     style="min-height: &wizard.height;em" >
  32.  
  33.     <script src="foxmarks-setup.js" />
  34.     <script src="foxmarks-settings.js" />
  35.     <script src="foxmarks-log.js" />
  36.     <script src="shared/passwordmeter.js" />
  37.     <script src="foxmarks-uitools.js" />
  38.  
  39.     <wizardpage pageid="transition" onpageshow="OnTransitionPageShow()"
  40.         next="execute" >
  41.         <hbox align="center">
  42.             <image src="chrome://foxmarks/skin/images/Throbber-small.gif" 
  43.                 id="spinner" hidden="true" height="16" width="16" />
  44.             <label id="statusLabel" />
  45.         </hbox>
  46.     </wizardpage>
  47.  
  48.     <wizardpage pageid="errorPage" next="transition" 
  49.         label="&wizard.title.firstsync;" >
  50.         <hbox>
  51.             <label value="&progress.label.status;" />
  52.             <label id="errormsg" value="" />
  53.             <spacer flex="1" />
  54.             <button label="&helpButton.label;" 
  55.                 oncommand="FoxmarksSetupHelp()" />
  56.         </hbox>
  57.     </wizardpage>
  58.  
  59.     <wizardpage pageid="syncPasswords" label="&wizard.title.syncpasswords;"
  60.         onpageshow="SyncPasswordsLoad(); OnPageShow('syncPasswords')" 
  61.         onpageadvanced="SyncPasswordAdvance()"
  62.         next="execute" class="secureSync">
  63.         <image id="syncPasswordsPing" />
  64.         <description>
  65.             <html:p>&wizard.syncpassworddesc;</html:p>
  66.             <html:ul>
  67.                 <html:li>&wizard.syncpassworddesc2;</html:li>
  68.                 <html:li>&wizard.syncpassworddesc3;</html:li>
  69.             </html:ul>
  70.             <vbox>
  71.                 <button label="&wizard.learnmore;" oncommand="FoxmarksMoreSecurityInfo();" />
  72.             </vbox>
  73.             <html:p>&wizard.syncpassworddesc4;</html:p>
  74.         </description>
  75.         <radiogroup id="syncpasswordradio">
  76.             <radio label="&wizard.yes;" value="1" 
  77.                  flex="1" />
  78.             <radio label="&wizard.no;" value="0" selected="true"
  79.                  flex="1" />
  80.         </radiogroup>
  81.     </wizardpage>
  82.  
  83.     <wizardpage pageid="passwordTransition" onpageshow="OnPasswordTransitionPageShow()"
  84.         next="execute"  class="secureSync">
  85.         <hbox align="center">
  86.             <image src="chrome://foxmarks/skin/images/Throbber-small.gif" 
  87.                 id="pin_spinner" hidden="true" height="16" width="16" />
  88.             <label id="pin_statusLabel" />
  89.         </hbox>
  90.     </wizardpage>
  91.  
  92.     <wizardpage pageid="pinOld" label="&wizard.title.pinold;"
  93.         onpageshow="OldPinLoad(); OnPageShow('pinOld')" 
  94.         onpagerewound="return GotoSyncPasswords();"
  95.         onpageadvanced="return OldPinAdvance();"
  96.         next="pinVerify"  class="secureSync">
  97.         <image id="pinOldPing" />
  98.         <description>
  99.             <html:p>&wizard.desc.oldpin;</html:p>
  100.         </description>
  101.         <hbox align="center">
  102.             <label value="&wizard.label.pin;" width="40" />
  103.             <textbox type="password" id="oldpin" width="100"/>
  104.         </hbox>
  105.         <hbox align="center">
  106.             <label  width="40"/>
  107.             <checkbox id="rememberPinOld" label="&dialog.label.rememberPIN;" checked="true"/>
  108.         </hbox>
  109.         <hbox align="center">
  110.             <button label="&wizard.forgotpin;" oncommand="ForgotPIN()" />
  111.         </hbox>
  112.     </wizardpage>
  113.  
  114.     <wizardpage pageid="resetPIN" label="&wizard.title.resetpin;"
  115.         onpageshow="ResetPINLoad(); OnPageShow('resetPIN')" 
  116.         onpagerewound="return ResetPINRewind();"
  117.         onpageadvanced="return ResetPINAdvance();"
  118.         next="doresetPIN"  class="secureSync">
  119.         <image id="resetPINPing" />
  120.         <description>
  121.             <html:p>&wizard.resetpindesc;</html:p>
  122.         </description>
  123.         <radiogroup id="resetpinradio">
  124.             <radio label="&wizard.resetpinoption1;" value="1"  
  125.                 flex="1" />
  126.             <radio label="&wizard.resetpinoption2;" id="resetpinno" value="0" selected="true" flex="1" />
  127.         </radiogroup>
  128.     </wizardpage>
  129.  
  130.     <wizardpage pageid="forgotPIN" label="&wizard.title.forgotpin;"
  131.         onpageshow="OnPageShow('forgotPIN')" 
  132.         onpagerewound="return ForgotPINRewind()"
  133.         onpageadvanced="return ForgotPINAdvance()"
  134.         next="resetPIN"  class="secureSync">
  135.         <image id="forgotPINPing" />
  136.         <description>
  137.             <html:p>&wizard.forgotpindesc;</html:p>
  138.             <html:p>&wizard.forgotpindesc2;</html:p>
  139.         </description>
  140.         <radiogroup id="forgotpinradio">
  141.             <radio label="&wizard.forgotpinoption1;" value="later" selected="true" 
  142.                 flex="1" />
  143.             <radio label="&wizard.forgotpinoption2;" value="reset" flex="1" />
  144.         </radiogroup>
  145.         <label class="text-link" href="http://wiki.xmarks.com/wiki/Foxmarks:_Forgetting_Your_PIN">
  146.             <html:span style="text-decoration:underline">&wizard.learnhow;
  147.             </html:span>
  148.         </label>
  149.     </wizardpage>
  150.  
  151.     <wizardpage pageid="pinVerify" onpageshow="VerifyPIN()"
  152.         next="pinVerified"  class="secureSync">
  153.         <hbox align="center">
  154.             <image src="chrome://foxmarks/skin/images/Throbber-small.gif" 
  155.                 id="vpin_spinner" hidden="true" height="16" width="16" />
  156.             <label id="vpin_statusLabel" />
  157.         </hbox>
  158.     </wizardpage>
  159.  
  160.     <wizardpage pageid="pinVerified" label="&wizard.title.pinverified;"
  161.         onpageshow="RelinkPinVerified(); OnPageShow('pinVerified')" 
  162.         onpagerewound="return GotoSyncPasswords();"
  163.         onpageadvanced="return PinVerifiedAdvance();"
  164.         next="execute"  class="secureSync">
  165.         <image id="pinVerifiedPing" />
  166.         <description>
  167.             <html:p>&wizard.pinverifieddesc;</html:p>
  168.             <html:p>&wizard.pinverifieddesc2;</html:p>
  169.         </description>
  170.     </wizardpage>
  171.     <wizardpage pageid="pinNew" label="&wizard.title.pinnew;"
  172.         onpageshow="NewOrResetPassword(); OnPageShow('pinNew')" 
  173.         onpagerewound="return NewPINRewind();"
  174.         onpageadvanced="return NewPasswordAdvance();"
  175.         next="newpinVerified"  class="secureSync">
  176.         <image id="pinNewPing" />
  177.         <description>
  178.             <html:p>&wizard.desc.pinnew;</html:p>
  179.             <html:p>&wizard.desc.pinnew2;</html:p>
  180.         </description>
  181.         <hbox align="center">
  182.             <label value="&wizard.label.pin;" width="80"/>
  183.             <textbox type="password" id="newpin" width="100"
  184.                 oninput="Xmarks.handlePasswordMeter('newpin');"/>
  185.             <vbox align="left">
  186.                 <hbox>
  187.                     <label value="&dialog.resetpin.passwordstrength;" />
  188.                     <label value=""
  189.                         id="passwordStrength" />
  190.                 </hbox>
  191.                 <box class="ps_bkgnd" align="left">
  192.                     <box id="passwordmeter" />
  193.                 </box>
  194.              </vbox>
  195.         </hbox>
  196.         <hbox align="center">
  197.             <label value="&wizard.label.confirmpin;" width="80"/>
  198.             <textbox type="password" id="newpin2" width="100"/>
  199.         </hbox>
  200.         <hbox align="center">
  201.             <label  width="80"/>
  202.             <checkbox id="rememberPin" label="&dialog.label.rememberPIN;" checked="true"/>
  203.         </hbox>
  204.     </wizardpage>
  205.  
  206.     <wizardpage pageid="newpinVerified" label="&wizard.title.pincreated;"
  207.         onpageshow="RelinkPinVerified(); OnPageShow('newpinVerified')" 
  208.         onpagerewound="return GotoSyncPasswords();"
  209.         onpageadvanced="return NewPinVerifiedAdvance();"
  210.         next="execute"  class="secureSync">
  211.         <image id="newpinVerifiedPing" />
  212.         <description>
  213.             <html:p>&wizard.newpinverifieddesc;</html:p>
  214.             <html:p>&wizard.newpinverifieddesc2;</html:p>
  215.         </description>
  216.     </wizardpage>
  217.  
  218.     <wizardpage pageid="resetpinVerified" label="&wizard.title.resetpinverified;"
  219.         onpageshow="RelinkPinVerified(); OnPageShow('resetpinVerified')" 
  220.         onpageadvanced="return NewPinVerifiedAdvance();"
  221.         onpagerewound="return GotoSyncPasswords();"
  222.         next="execute"  class="secureSync">
  223.         <image id="resetpinVerifiedPing" />
  224.         <description>
  225.             <html:p>&wizard.resetpinverifieddesc;</html:p>
  226.         </description>
  227.     </wizardpage>
  228.     <wizardpage pageid="selectProfile" label="&wizard.title.selectprofile;"
  229.         onpageshow="OnPageShow('selectProfile')" 
  230.         onpageadvanced="SetProfileValue(); return true;"
  231.         next="execute" >
  232.         <image id="selectProfilePing" />
  233.         <description>&wizard.profile.desc; </description>
  234.         <hbox align="center">
  235.             <label value="&wizard.label.profilechoice;" />
  236.             <menulist id="profileMenuList" >
  237.                 <menupopup id="profileMenuPopup" >
  238.                     <menuitem label="&wizard.profile.defaultname;" value="0" />
  239.                     <menuitem label="1" value="1" hidden="true"/>
  240.                     <menuitem label="2" value="2" hidden="true"/>
  241.                     <menuitem label="3" value="3" hidden="true"/>
  242.                     <menuitem label="4" value="4" hidden="true"/>
  243.                     <menuitem label="5" value="5" hidden="true"/>
  244.                     <menuitem label="6" value="6" hidden="true"/>
  245.                     <menuitem label="7" value="7" hidden="true"/>
  246.                     <menuitem label="8" value="8" hidden="true"/>
  247.                     <menuitem label="9" value="9" hidden="true"/>
  248.                 </menupopup>
  249.             </menulist>
  250.         </hbox>
  251.     </wizardpage>
  252.  
  253.     <wizardpage pageid="selectSyncOption" label="&wizard.title.firstsync;" 
  254.         onpageadvanced="return SetupOptionNext()" 
  255.         onpageshow="OnPageShow('selectSyncOption')"
  256.         next="mergeOption" >
  257.         <image id="selectSyncOptionPing" />
  258.         <description>
  259.             <html:p>&wizard.desc9;</html:p>
  260.             <html:p>&wizard.desc10;</html:p>
  261.         </description>
  262.         <radiogroup id="localOrRemote">
  263.             <radio label="&wizard.merge;" value="merge" selected="true" 
  264.                 flex="1" />
  265.             <radio label="&wizard.keepremote;" value="remote" flex="1" />
  266.             <radio label="&wizard.keeplocal;" value="local" flex="1" />
  267.         </radiogroup>
  268.  
  269.         <spacer flex="3" />
  270.         <label class="text-link" href="http://my.xmarks.com/">
  271.             <html:span style="text-decoration:underline">&wizard.seeserver;
  272.             </html:span>
  273.         </label>
  274.     </wizardpage>
  275.  
  276.     <wizardpage pageid="mergeOption" label="&wizard.title.firstsync;" 
  277.         onpageshow="OnPageShow('mergeOption')"
  278.         next="execute" >
  279.         <image id="mergeOptionPing" />
  280.         <description>
  281.             <html:p>&wizard.desc11;</html:p>
  282.             <html:p>&wizard.desc12;</html:p></description>
  283.         <spacer flex="1" />
  284.         <radiogroup id="mergeStart">
  285.             <radio label="&wizard.startremote;" value="remote" flex="1" 
  286.                 selected="true" />
  287.             <radio label="&wizard.startlocal;" value="local" flex="1" />
  288.         </radiogroup>
  289.         <description><html:p>&wizard.desc13;</html:p></description>
  290.         <spacer flex="3" />    
  291.         <label class="text-link" href="http://my.xmarks.com/">
  292.             <html:span style="text-decoration:underline">&wizard.seeserver;
  293.             </html:span>
  294.         </label>
  295.     </wizardpage>
  296.  
  297.     <wizardpage label="&wizard.title.ready;" pageid="execute" 
  298.         onpageshow="OnPageShow('execute'); SetupShowExecutePage()"
  299.         onpageadvanced="return SetupPerformSync()" 
  300.         next="success">
  301.         <image id="executePing" />
  302.         <description style="margin-top: 1em;" id="readydesc"
  303.             value="&wizard.desc14;" />
  304.         <description id="operation" />
  305.         <description id="profileMsg" />
  306.         <html:p />
  307.         <description id="warning" style="font-weight: bold;" />
  308.     </wizardpage>
  309.  
  310.     <wizardpage label="&wizard.title.success;" pageid="success" 
  311.             onpageshow="OnPageShow('success'); 
  312.             document.documentElement.canRewind=false;" >
  313.         <image id="successPing" />
  314.         <description>
  315.             <html:p>&wizard.desc15;</html:p>
  316.             <html:p>&wizard.desc16;</html:p>
  317.         </description>
  318.     </wizardpage>
  319. </wizard>
  320.